<?php


namespace backend\modules\tool\DataSource\Task\prcoess;
use backend\modules\tool\DataSource\Task\command\CommandFaced;
use backend\modules\tool\DataSource\Task\command\LinuxCommand;

class LinuxProcess extends BaseProcess
{
    protected $waitRun=[];
    protected $now_run=0;
    protected static $run_now;
    public function addTask(\Closure $closure)
    {
        $this->waitRun[]=$closure;
        return $this;
    }
    public function start()
    {
       echo CommandFaced::getDirver()->run("test");
        
    }
    public function ExceptionHandler($throwable)
    {

    }

    public function TaskEnd()
    {
        while (true){
        }
    }
}